package com.first.xiinn.service.impl;

import java.util.List;

import com.first.core.service.impl.BaseServiceImpl;
import com.first.xiinn.dao.CommentDao;
import com.first.xiinn.model.Comment;
import com.first.xiinn.service.CommentService;

public class CommentServiceImpl extends BaseServiceImpl<Comment> implements CommentService{
	
	
	private CommentDao commentDao;

	public CommentServiceImpl(CommentDao dao) {
		super(dao);
		this.commentDao=dao;
	}

	public List<Comment> getNewestComments(){
		return commentDao.getNewestComments();
	}
	/*
	 * (non-Javadoc)
	 * @see com.first.xiinn.service.CommentService#addComment(com.first.xiinn.model.Comment)
	 */
	@Override
	public Comment addComment(Comment comment) {
		return this.commentDao.addComment(comment);
	}
	
}
